package edu.hwadee.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Car entity. @author MyEclipse Persistence Tools
 */

public class Car implements java.io.Serializable {

	// Fields

	private Integer carId;
	private Carcomplement carcomplement;
	private Company companyByDealer;
	private Area area;
	private Company companyByControlCompany;
	private Company companyByHold;
	private Staff staff;
	private String carNumber;
	private String brandModel;
	private Date manufactureDate;
	private String origin;
	private String engineNumber;
	private String frameNumber;
	private String photo;
	private String color;
	private Short carState;
	private Float productionvalue;
	private Float cost;
	private Short property;
	private Date registeredDate;
	private Float originValue;
	private Short depreciationState;
	private Float depreciationRate;
	private Boolean isBlacklist;
	private Boolean hasGps;
	private Short checkCycle;
	private Set carplans = new HashSet(0);
	private Set carbusinesses = new HashSet(0);
	private Set papers = new HashSet(0);
	private Set carsafeties = new HashSet(0);
	private Set carserverses = new HashSet(0);
	private Set carcrashs = new HashSet(0);
	private Set cardepreciations = new HashSet(0);
	private Set carpapers = new HashSet(0);
	private Set oilbuies = new HashSet(0);

	// Constructors

	/** default constructor */
	public Car() {
	}

	/** full constructor */
	public Car(Carcomplement carcomplement, Company companyByDealer, Area area, Company companyByControlCompany,
			Company companyByHold, Staff staff, String carNumber, String brandModel, Date manufactureDate,
			String origin, String engineNumber, String frameNumber, String photo, String color, Short carState,
			Float productionvalue, Float cost, Short property, Date registeredDate, Float originValue,
			Short depreciationState, Float depreciationRate, Boolean isBlacklist, Boolean hasGps, Short checkCycle,
			Set carplans, Set carbusinesses, Set papers, Set carsafeties, Set carserverses, Set carcrashs,
			Set cardepreciations, Set carpapers, Set oilbuies) {
		this.carcomplement = carcomplement;
		this.companyByDealer = companyByDealer;
		this.area = area;
		this.companyByControlCompany = companyByControlCompany;
		this.companyByHold = companyByHold;
		this.staff = staff;
		this.carNumber = carNumber;
		this.brandModel = brandModel;
		this.manufactureDate = manufactureDate;
		this.origin = origin;
		this.engineNumber = engineNumber;
		this.frameNumber = frameNumber;
		this.photo = photo;
		this.color = color;
		this.carState = carState;
		this.productionvalue = productionvalue;
		this.cost = cost;
		this.property = property;
		this.registeredDate = registeredDate;
		this.originValue = originValue;
		this.depreciationState = depreciationState;
		this.depreciationRate = depreciationRate;
		this.isBlacklist = isBlacklist;
		this.hasGps = hasGps;
		this.checkCycle = checkCycle;
		this.carplans = carplans;
		this.carbusinesses = carbusinesses;
		this.papers = papers;
		this.carsafeties = carsafeties;
		this.carserverses = carserverses;
		this.carcrashs = carcrashs;
		this.cardepreciations = cardepreciations;
		this.carpapers = carpapers;
		this.oilbuies = oilbuies;
	}

	// Property accessors

	public Integer getCarId() {
		return this.carId;
	}

	public void setCarId(Integer carId) {
		this.carId = carId;
	}

	public Carcomplement getCarcomplement() {
		return this.carcomplement;
	}

	public void setCarcomplement(Carcomplement carcomplement) {
		this.carcomplement = carcomplement;
	}

	public Company getCompanyByDealer() {
		return this.companyByDealer;
	}

	public void setCompanyByDealer(Company companyByDealer) {
		this.companyByDealer = companyByDealer;
	}

	public Area getArea() {
		return this.area;
	}

	public void setArea(Area area) {
		this.area = area;
	}

	public Company getCompanyByControlCompany() {
		return this.companyByControlCompany;
	}

	public void setCompanyByControlCompany(Company companyByControlCompany) {
		this.companyByControlCompany = companyByControlCompany;
	}

	public Company getCompanyByHold() {
		return this.companyByHold;
	}

	public void setCompanyByHold(Company companyByHold) {
		this.companyByHold = companyByHold;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	public String getCarNumber() {
		return this.carNumber;
	}

	public void setCarNumber(String carNumber) {
		this.carNumber = carNumber;
	}

	public String getBrandModel() {
		return this.brandModel;
	}

	public void setBrandModel(String brandModel) {
		this.brandModel = brandModel;
	}

	public Date getManufactureDate() {
		return this.manufactureDate;
	}

	public void setManufactureDate(Date manufactureDate) {
		this.manufactureDate = manufactureDate;
	}

	public String getOrigin() {
		return this.origin;
	}

	public void setOrigin(String origin) {
		this.origin = origin;
	}

	public String getEngineNumber() {
		return this.engineNumber;
	}

	public void setEngineNumber(String engineNumber) {
		this.engineNumber = engineNumber;
	}

	public String getFrameNumber() {
		return this.frameNumber;
	}

	public void setFrameNumber(String frameNumber) {
		this.frameNumber = frameNumber;
	}

	public String getPhoto() {
		return this.photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public String getColor() {
		return this.color;
	}

	public void setColor(String color) {
		this.color = color;
	}

	public Short getCarState() {
		return this.carState;
	}

	public void setCarState(Short carState) {
		this.carState = carState;
	}

	public Float getProductionvalue() {
		return this.productionvalue;
	}

	public void setProductionvalue(Float productionvalue) {
		this.productionvalue = productionvalue;
	}

	public Float getCost() {
		return this.cost;
	}

	public void setCost(Float cost) {
		this.cost = cost;
	}

	public Short getProperty() {
		return this.property;
	}

	public void setProperty(Short property) {
		this.property = property;
	}

	public Date getRegisteredDate() {
		return this.registeredDate;
	}

	public void setRegisteredDate(Date registeredDate) {
		this.registeredDate = registeredDate;
	}

	public Float getOriginValue() {
		return this.originValue;
	}

	public void setOriginValue(Float originValue) {
		this.originValue = originValue;
	}

	public Short getDepreciationState() {
		return this.depreciationState;
	}

	public void setDepreciationState(Short depreciationState) {
		this.depreciationState = depreciationState;
	}

	public Float getDepreciationRate() {
		return this.depreciationRate;
	}

	public void setDepreciationRate(Float depreciationRate) {
		this.depreciationRate = depreciationRate;
	}

	public Boolean getIsBlacklist() {
		return this.isBlacklist;
	}

	public void setIsBlacklist(Boolean isBlacklist) {
		this.isBlacklist = isBlacklist;
	}

	public Boolean getHasGps() {
		return this.hasGps;
	}

	public void setHasGps(Boolean hasGps) {
		this.hasGps = hasGps;
	}

	public Short getCheckCycle() {
		return this.checkCycle;
	}

	public void setCheckCycle(Short checkCycle) {
		this.checkCycle = checkCycle;
	}

	public Set getCarplans() {
		return this.carplans;
	}

	public void setCarplans(Set carplans) {
		this.carplans = carplans;
	}

	public Set getCarbusinesses() {
		return this.carbusinesses;
	}

	public void setCarbusinesses(Set carbusinesses) {
		this.carbusinesses = carbusinesses;
	}

	public Set getPapers() {
		return this.papers;
	}

	public void setPapers(Set papers) {
		this.papers = papers;
	}

	public Set getCarsafeties() {
		return this.carsafeties;
	}

	public void setCarsafeties(Set carsafeties) {
		this.carsafeties = carsafeties;
	}

	public Set getCarserverses() {
		return this.carserverses;
	}

	public void setCarserverses(Set carserverses) {
		this.carserverses = carserverses;
	}

	public Set getCarcrashs() {
		return this.carcrashs;
	}

	public void setCarcrashs(Set carcrashs) {
		this.carcrashs = carcrashs;
	}

	public Set getCardepreciations() {
		return this.cardepreciations;
	}

	public void setCardepreciations(Set cardepreciations) {
		this.cardepreciations = cardepreciations;
	}

	public Set getCarpapers() {
		return this.carpapers;
	}

	public void setCarpapers(Set carpapers) {
		this.carpapers = carpapers;
	}

	public Set getOilbuies() {
		return this.oilbuies;
	}

	public void setOilbuies(Set oilbuies) {
		this.oilbuies = oilbuies;
	}

	@Override
	public String toString() {
		return "Car [carId=" + carId + ", carcomplement=" + carcomplement + ", companyByDealer=" + companyByDealer
				+ ", area=" + area + ", companyByControlCompany=" + companyByControlCompany + ", companyByHold="
				+ companyByHold + ", staff=" + staff + ", carNumber=" + carNumber + ", brandModel=" + brandModel
				+ ", manufactureDate=" + manufactureDate + ", origin=" + origin + ", engineNumber=" + engineNumber
				+ ", frameNumber=" + frameNumber + ", photo=" + photo + ", color=" + color + ", carState=" + carState
				+ ", productionvalue=" + productionvalue + ", cost=" + cost + ", property=" + property
				+ ", registeredDate=" + registeredDate + ", originValue=" + originValue + ", depreciationState="
				+ depreciationState + ", depreciationRate=" + depreciationRate + ", isBlacklist=" + isBlacklist
				+ ", hasGps=" + hasGps + ", checkCycle=" + checkCycle + "]";
	}

}